package com.yourcompany.api.strategy;

import com.yourcompany.api.vo.PaymentVO;

public interface PaymentStrategy {
    
    /**
     * 获取支付方式
     */
    String getPaymentMethod();
    
    /**
     * 创建支付订单
     */
    PaymentVO createPayment(String orderNo, String totalAmount);
    
    /**
     * 查询支付结果
     */
    boolean queryPayment(String orderNo);
    
    /**
     * 关闭支付订单
     */
    boolean closePayment(String orderNo);
    
    /**
     * 退款
     */
    boolean refund(String orderNo, String refundAmount);

    //支付
    PaymentVO pay(String orderNo, String totalAmount);
} 